Drawing.isInEllipse Method
Gets a value indicating whether the specified point is at or within the bounds of an ellipse.
This method is static.
Parameters
- x
-
The point's horizontal coordinate.
- y
-
The point's vertical coordinate.
- centerX
-
The horizontal coordinate of the ellipse's center.
- centerY
-
The vertical coordinate of the ellipse's center.
- width
-
The width of the ellipse.
- height
-
The height of the ellipse.
Return Value
true if the point at x and y intersects with the ellipse; otherwise
false.